<?php
session_start();
if(1 || $_SERVER['SERVER_NAME'] == "www.wgf.com"){
	$name = "汪本地";
	$did = 60014;
	$login = TRUE;
	
}else{
	
	if($_SESSION['name']){
		$name=$_SESSION['name'];
		$id = $_SESSION['id'];
		$login = TRUE;
		
	
	}else{
		echo "<script>";
		echo "alert('请先登录！');";
		echo "window.location.href='login.php';";
		echo "</script>";
	}
}
//echo "<pre>";
//print_r($_SESSION);
//echo "</pre>";



?>